package main

import (
	"fyne.io/fyne/v2/app"
	"fyne.io/fyne/v2/container"
	//"fyne.io/fyne/v2/theme"
	"fyne.io/fyne/v2/widget"
)

func main() {
	myApp := app.New()
	myWindow := myApp.NewWindow("TabContainer 控件")

	tabs := container.NewAppTabs(
		container.NewTabItem("标签 1", widget.NewLabel("你好")),
		container.NewTabItem("标签 2", widget.NewLabel("世界！")),
	)

	//tabs.Append(container.NewTabItemWithIcon("首页", theme.HomeIcon(), widget.NewLabel("首页标签")))

	tabs.SetTabLocation(container.TabLocationLeading)

	myWindow.SetContent(tabs)
	myWindow.ShowAndRun()
}
